
/*
7 avr. 2012 jblanchard 
*/

package org.jcb.control.dto;

import java.util.ArrayList;
import java.util.List;


public class ChineseQuestionnaire {
private List<DataChineseLanguage> questions = new ArrayList<DataChineseLanguage>();
int current ;

public boolean hasNext() {
	return (current < getNbQuestion()) ;
}

public DataChineseLanguage nextQuestion() {
	//questions.add(data);
	DataChineseLanguage dcl = questions.get(current) ;
	current++ ;
	return  dcl ;
}

//public void initQuestionnaire() {
//	current = 0 ;
//}

public void addQuestion(DataChineseLanguage data) {
	questions.add(data);
}

public int getNbQuestion() {
	return questions.size();
}

public  DataChineseLanguage getQuestion(int i) {
	return questions.get(i);
}


public String getChineseQuestion(int i) {
	return questions.get(i).getChinese();
}

public String getPinyin(int i) {
	return questions.get(i).getPinyin();
}

public String getCarCompose(int i) {
	return questions.get(i).getCarCompose();
}

public String getExample(int i) {
	return questions.get(i).getExemple();
}

public String getTranslation(int i) {
	return questions.get(i).getTranslated();
}


}
